package router

import (
	"github.com/gin-gonic/gin"
	"order_bff/controller/order"
)

func InitOrderRouter(router *gin.Engine) {

	OrderRouter := router.Group("/v1/order")
	{
		OrderRouter.GET("", order.List)          //订单列表
		OrderRouter.POST("", order.Add)          //添加订单
		OrderRouter.GET("/detail", order.Detail) //订单详情
	}
}
